<?php
namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;

class MemberVipLog extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'member_vip_log';

    protected $primaryKey = 'id';

    protected $fillable = [
        'member_id', // 会员ID
        'operate_type', // 操作类型
        'content', // 内容
    ];

    public function member()
    {
        return $this->belongsTo(Member::class, 'member_id', 'id');
    }
}
